package com.hishop.service;

import com.github.pagehelper.PageInfo;
import com.hishop.common.ServerResponse;
import com.hishop.pojo.Product;
import com.hishop.vo.ProductDetailVo;

/**
 * Created by hejie on 2017/7/18.
 */
public interface IProductService {
    ServerResponse saveOrUpdateProduct(Product product);
    ServerResponse setSaleStatus(Integer productId, Integer status);
    ServerResponse<ProductDetailVo> manageProductDetail(Integer productId);
    ServerResponse<PageInfo> getProductList(int pageNum, int pageSize);
    ServerResponse<PageInfo> searchProduct(String productName, Integer productId, int pageNum, int pageSize);
    ServerResponse<ProductDetailVo> getProductDetail(Integer productId);
    ServerResponse<PageInfo>getProductListByKeywordCategory(String keyword, Integer categoryId, int pageNum, int pageSize, String orderBy);
}
